/**
 * 
 * @project
 * @author yanwl
 * @version 1.0
 * @data 2014-09-29
 */
package com.chnbst.bstyun.core.common;

import com.eos.system.utility.CryptoUtil;


public class DESUtil {
	private final static String ENCRYPT_KEY="cap_user";
	
	public static String encrypt(String plain) throws Exception {
		return CryptoUtil.encrypt(plain, ENCRYPT_KEY);
	}
	
	public static String decrypt(String cryptograph) throws Exception {
		return CryptoUtil.decrypt(cryptograph, ENCRYPT_KEY);
	}
}
